#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
static int arr[27] = { 0 };
bool isprinum(int n)
{
    if (n == 0)
        return false;

    int i = 0;
    for (i = 2; i < n; i++)
    {
        if (n % i == 0)
            return false;
    }
    return true;
}
int main()
{
    string str;
    cin >> str;
    int i = 0;
    for (i = 0; i < str.size(); i++)
    {
        arr[str[i]-'a']++;
    }
    int max = arr[str[0]-'a'];
    int min = arr[str[0]-'a'];
    for (i = 0; i < str.size(); i++)
    {
        if (arr[str[i]-'a'] > max)
            max = arr[str[i] - 'a'];

        if (arr[str[i] - 'a'] <=min)
            min = arr[str[i] - 'a'];
    }
    int ret = max - min;

    if (isprinum(ret))
    {
        printf("Lucky Word\n");
        printf("%d", ret);
    }
    else
    {
        printf("No Answer\n");
        printf("%d", 0);
    }
    return 0;
}